public class Code5 {

    public static void main(String[] args) {

        for(int i=0; i<17; i++){
            for(int j=0; j<17; j++){
                if(i==0){
                    if(j==0){
                        System.out.print("\t");
                    }else if(j>0 && j<=10){
                        System.out.print((j-1)+"\t");
                    }else{
                        switch (j){
                            case 11: System.out.print("a\t"); break;
                            case 12: System.out.print("b\t"); break;
                            case 13: System.out.print("c\t"); break;
                            case 14: System.out.print("d\t"); break;
                            case 15: System.out.print("e\t"); break;
                            case 16: System.out.print("f\t"); break;
                        }
                    }

                }else if(i>0 && i<=10){
                    if(j==0){
                        System.out.print((i-1)+"\t");
                    }else{
                        System.out.print("+\t");
                    }
                }else{
                    if(j==0){
                        switch (i){
                            case 11: System.out.print("a\t"); break;
                            case 12: System.out.print("b\t"); break;
                            case 13: System.out.print("c\t"); break;
                            case 14: System.out.print("d\t"); break;
                            case 15: System.out.print("e\t"); break;
                            case 16: System.out.print("f\t"); break;
                        }
                    }else{
                        System.out.print("+\t");
                    }
                }

            }
            System.out.println();
        }

    }
}
